Skip to content

gh-89727: Fix pathlib.Path.walk RecursionError on deep trees#100282

Merged
barneygale merged 20 commits intopython:mainfrom
zmievsa:gh-89727/fix-pathlib.Path.walk-recursion-depth
Mar 22, 2023
Merged

gh-89727: Fix pathlib.Path.walk RecursionError on deep trees#100282
barneygale merged 20 commits intopython:mainfrom
zmievsa:gh-89727/fix-pathlib.Path.walk-recursion-depth

Conversation

@zmievsa
Copy link
Contributor

@zmievsa zmievsa commented Dec 15, 2022

Use a stack to implement pathlib.Path.walk iteratively instead of recursively to avoid hitting recursion limits on deeply nested trees.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants